<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ include file="/WEB-INF/jsp/includes.jsp" %>  
<%  
String path = request.getContextPath();  
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";  
%>  
  
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">  
<html>  
  <head>  
    <base href="<%=basePath%>">  
      
    <title>CKEditor</title>  
    <meta http-equiv="pragma" content="no-cache">  
    <meta http-equiv="cache-control" content="no-cache">  
    <meta http-equiv="expires" content="0">      
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">  
    <meta http-equiv="description" content="This is my page">  
    <!-- 
    <link rel="stylesheet" type="text/css" href="styles.css"> 
    -->  
    <script type="text/javascript" src="ckeditor/ckeditor.js"></script>  
  </head>  
    
  <body>  
  <% 
String atts[] = new String [5]; 
atts[0]="hello"; 
atts[1]="this"; 
atts[2]="is"; 
atts[3]="a";
atts[4]="pen"; 
request.setAttribute("atts", atts);
%>
<c:forEach items="$ { atts }" var="item" varStatus="s">
<h2><c:out value="$ { item }"/>的四种属性：</h2>
index：$ {s.index}</br>
count：$ {s.count}</br>
first：$ {s.first}</br>
last：$ {s.last}</br>
</c:forEach>
  
        <form id="form1" name="form1" method="post" action="display.jsp">  
            <table width="650" height="400" border="0" align="center">  
                <tr>  
                    <td valign="top">  
                        内容:  
                    </td>  
                    <td>  
                        <textarea id="editor1" name="editor1">&lt;p&gt;Initial value.&lt;/p&gt;</textarea>  
                        <script type="text/javascript">  
                            CKEDITOR.replace( 'tt' );  
                        </script>  
                    </td>  
                </tr>  
                <tr>  
                    <td></td>  
                    <td>  
                        <input type="submit" name="Submit" value="提交" />  
                        <input type="reset" name="Reset" value="重置" />  
                    </td>  
                </tr>  
            </table>  
        </form>  
    </body>  
</html>
<ckeditor:replace replace="editor1" basePath="/ckeditor/"  />

